#include "StdAfx.h"
#include "Reader.h"

#include "ReaderImpl.h"


	namespace las
	{
		LAS_API Reader::Reader( std::string const &strFileName )
		{
			m_pImpl = new ReaderImpl(strFileName);
			Init();
		}

		LAS_API Reader::~Reader()
		{
			delete m_pImpl;
		}

		LAS_API void Reader::Init()
		{
			m_pImpl->ReadHeader();
		}

		Header const & Reader::GetHeader()
		{
			return m_pImpl->GetHeader();
		}

		bool Reader::ReadNextPoint()
		{
			return m_pImpl->ReadNextPoint();
		}

		Point const & Reader::GetPoint() const
		{
			return m_pImpl->GetPoint();
		}

	}

